#!/bin/bash -i

#echo `date '+%F %T'` '>>>>>>>>>>>>>>>>>>>>begin change ssh port<<<<<<<<<<<<<<<<<<<<' >> $logpath
sed -i 's/#Port 22/Port 60666/' /etc/ssh/sshd_config
systemctl restart sshd

##source /etc/bashrc
##shopt  -s  expand_aliases
#firewall_add_port 60666

#echo `date '+%F %T'` '>>>>>>>>>>>>>>>>>>>>end change ssh port<<<<<<<<<<<<<<<<<<<<' >> $logpath